package com.corpgovernment.common.config;

import com.ctrip.corp.obt.generic.utils.Conditional;

/**
 * @author zl.cui
 * @date 2024/5/15
 */
public interface InterfaceConfig {
    String get(String k);

    default Boolean enable() {
        String v = get("enable");
        return Conditional.ofNullable(v).map(Boolean::valueOf).orElse(Boolean.TRUE);
    }
}
